// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
//引入线下mock, 如果要用线上mock就得注释掉线下的
/*import user from "./js/user/user.js"*/

//引入axios
import axios from "axios"
axios.defaults.baseURL="https://www.fastmock.site/mock/9be8ec083c2b9ab29876cee18aa0c8c5/pethome"
Vue.prototype.$http = axios
// 引入elementui
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
